package com.exonline.commons.entity;
/**
 * @desc 课程方向实体类
 * @author hbrj
 */
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Direction {
    public  String directionName;//方向名称
    public List<Subject> subjects = new ArrayList<>(); //方向包含的科目列表

    public List<Subject> addSubjects (Subject subject) {
        subjects.add(subject);
        return subjects;
    }
}
